import { Button } from 'antd';
import React from 'react';

export const ButtonGroup = (props: any) => {
  return (
    <div style={{ marginBottom: 10, float: 'left' }}>
      <Button
        type="primary"
        onClick={() => props.add()}
        style={{ marginRight: 10 }}
      >
        新增记录
      </Button>
      <Button
        danger
        onClick={() => {
          props.checkit();
        }}
        style={{ marginRight: 10 }}
      >
        批量删除
      </Button>

    </div>
  );
};
